home *** CD-ROM | disk | FTP | other *** search
-
- #ifndef __SUBSTRING_H_
- #define __SUBSTRING_H_
-
- #include "resource.h"
-
- class ATL_NO_VTABLE Substring :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<Substring, &CLSID_Substring>,
- public ISupportErrorInfo,
- public IDispatchImpl<ISubstring, &IID_ISubstring, &LIBID_sgRegExp>
- {
- public:
- Substring()
- {
- }
-
- BEGIN_COM_MAP(Substring)
- COM_INTERFACE_ENTRY(ISubstring)
- COM_INTERFACE_ENTRY(IDispatch)
- COM_INTERFACE_ENTRY(ISupportErrorInfo)
- END_COM_MAP()
-
- // ISupportsErrorInfo
- STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
-
- // ISubstring
- STDMETHOD(get_Value)(/*[out, retval]*/ BSTR* res);
- STDMETHOD(get_Start)(/*[out, retval]*/ long* res);
- STDMETHOD(get_Length)(/*[out, retval]*/ long* res);
-
- // Implementation
- _bstr_t m_Value;
- long m_Start;
- long m_Length;
- };
-
- #endif //__SUBSTRING_H_
-